/**
 * 
 */
package com.mwyq.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import com.mwyq.model.Lang;
import com.mwyq.model.Topic;
import com.mwyq.service.TestService;
import com.mwyq.service.TopicService;

/**
 * @Title:  
 * @Description: 
 * @param:  
 * @throws:
 * @author: huangtao
 * @date: 2016年6月29日
 */
@RestController
@RequestMapping("test")
public class TestController {
	@Resource
	private TestService testService;
	
	
	
	@RequestMapping(value = "/show")
	public ModelAndView test(){
		ModelAndView view = new ModelAndView("/test");
		//调用service获取所有的语言类型
		List<Lang> langList = testService.getAllLang();
		view.addObject("langList", langList);
		return view;
	}
}
